<template>
  <img alt="Vue logo" src="../assets/logo.png"/>
  <HelloWorld msg="Hello Vue 3 + TypeScript + Vite"/>
  <el-button type="primary" @click="helloClick">你好呀{{ a }}</el-button>
  <el-button type="primary" @click="helloClick2">b:{{ b.num }}</el-button>
</template>

<script setup lang="ts">
import {ref, reactive} from 'vue'

let a = ref(0)
// a = reactive(a);
let b = reactive({
  num: 1
})
let helloClick = () => {
  a.value++;
}
let helloClick2 = () => {
  b.num++
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
